﻿
/*
'===============================================================================
'  Generated From - CSharp_dOOdads_BusinessEntity.vbgen
' 
'  ** IMPORTANT  ** 
'  How to Generate your stored procedures:
' 
'  SQL        = SQL_StoredProcs.vbgen
'  ACCESS     = Access_StoredProcs.vbgen
'  ORACLE     = Oracle_StoredProcs.vbgen
'  FIREBIRD   = FirebirdStoredProcs.vbgen
'  POSTGRESQL = PostgreSQL_StoredProcs.vbgen
'
'  The supporting base class OleDbEntity is in the Architecture directory in "dOOdads".
'  
'  This object is 'abstract' which means you need to inherit from it to be able
'  to instantiate it.  This is very easilly done. You can override properties and
'  methods in your derived class, this allows you to regenerate this class at any
'  time and not worry about overwriting custom code. 
'
'  NEVER EDIT THIS FILE.
'
'  public class YourObject :  _YourObject
'  {
'
'  }
'
'===============================================================================
*/

// Generated by MyGeneration Version # (1.2.0.7)

using System;
using System.Data;
using System.Data.OleDb;
using System.Collections;
using System.Collections.Specialized;

using MyGeneration.dOOdads;

namespace pub.com
{
	public abstract class _Content : OleDbEntity
	{
		public _Content()
		{
			this.QuerySource = "Content";
			this.MappingName = "Content";

		}	

		//=================================================================
		//  public Overrides void AddNew()
		//=================================================================
		//
		//=================================================================
		public override void AddNew()
		{
			base.AddNew();
			
		}
		
		
		public override string GetAutoKeyColumn()
		{
			return "ID";
		}

		public override void FlushData()
		{
			this._whereClause = null;
			this._aggregateClause = null;
			base.FlushData();
		}
		
		//=================================================================
		//  	public Function LoadAll() As Boolean
		//=================================================================
		//  Loads all of the records in the database, and sets the currentRow to the first row
		//=================================================================
		public bool LoadAll() 
		{
			ListDictionary parameters = null;
			
			return base.LoadFromSql("[" + this.SchemaStoredProcedure + "proc_ContentLoadAll]", parameters);
		}
	
		//=================================================================
		// public Overridable Function LoadByPrimaryKey()  As Boolean
		//=================================================================
		//  Loads a single row of via the primary key
		//=================================================================
		public virtual bool LoadByPrimaryKey(int ID)
		{
			ListDictionary parameters = new ListDictionary();
			parameters.Add(Parameters.ID, ID);

		
			return base.LoadFromSql("[" + this.SchemaStoredProcedure + "proc_ContentLoadByPrimaryKey]", parameters);
		}
		
		#region Parameters
		protected class Parameters
		{
			
			public static OleDbParameter ID
			{
				get
				{
					return new OleDbParameter("@ID", OleDbType.Numeric, 0);
				}
			}
			
			public static OleDbParameter 已采
			{
				get
				{
					return new OleDbParameter("@已采", OleDbType.Boolean, 2);
				}
			}
			
			public static OleDbParameter 已发
			{
				get
				{
					return new OleDbParameter("@已发", OleDbType.Boolean, 2);
				}
			}
			
			public static OleDbParameter 标题
			{
				get
				{
					return new OleDbParameter("@标题", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 公司介绍
			{
				get
				{
					return new OleDbParameter("@公司介绍", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 公司介绍_pic
			{
				get
				{
					return new OleDbParameter("@公司介绍_pic", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter Logo
			{
				get
				{
					return new OleDbParameter("@Logo", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter Logo2
			{
				get
				{
					return new OleDbParameter("@Logo2", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 公司ID
			{
				get
				{
					return new OleDbParameter("@公司ID", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 邮编
			{
				get
				{
					return new OleDbParameter("@邮编", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 注册资本
			{
				get
				{
					return new OleDbParameter("@注册资本", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 成立时间
			{
				get
				{
					return new OleDbParameter("@成立时间", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 注册地址
			{
				get
				{
					return new OleDbParameter("@注册地址", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 主营产品或服务
			{
				get
				{
					return new OleDbParameter("@主营产品或服务", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 公司网址
			{
				get
				{
					return new OleDbParameter("@公司网址", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 法人代表
			{
				get
				{
					return new OleDbParameter("@法人代表", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 手机
			{
				get
				{
					return new OleDbParameter("@手机", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 电话
			{
				get
				{
					return new OleDbParameter("@电话", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 联系人
			{
				get
				{
					return new OleDbParameter("@联系人", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 地址
			{
				get
				{
					return new OleDbParameter("@地址", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 传真
			{
				get
				{
					return new OleDbParameter("@传真", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 性别
			{
				get
				{
					return new OleDbParameter("@性别", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 职称
			{
				get
				{
					return new OleDbParameter("@职称", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 缩略图
			{
				get
				{
					return new OleDbParameter("@缩略图", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter PageUrl
			{
				get
				{
					return new OleDbParameter("@PageUrl", OleDbType.LongVarWChar, 0);
				}
			}
			
			public static OleDbParameter 处理中
			{
				get
				{
					return new OleDbParameter("@处理中", OleDbType.Boolean, 2);
				}
			}
			
		}
		#endregion		
	
		#region ColumnNames
		public class ColumnNames
		{  
            public const string ID = "ID";
            public const string 已采 = "已采";
            public const string 已发 = "已发";
            public const string 标题 = "标题";
            public const string 公司介绍 = "公司介绍";
            public const string 公司介绍_pic = "公司介绍_pic";
            public const string Logo = "Logo";
            public const string Logo2 = "Logo2";
            public const string 公司ID = "公司ID";
            public const string 邮编 = "邮编";
            public const string 注册资本 = "注册资本";
            public const string 成立时间 = "成立时间";
            public const string 注册地址 = "注册地址";
            public const string 主营产品或服务 = "主营产品或服务";
            public const string 公司网址 = "公司网址";
            public const string 法人代表 = "法人代表";
            public const string 手机 = "手机";
            public const string 电话 = "电话";
            public const string 联系人 = "联系人";
            public const string 地址 = "地址";
            public const string 传真 = "传真";
            public const string 性别 = "性别";
            public const string 职称 = "职称";
            public const string 缩略图 = "缩略图";
            public const string PageUrl = "PageUrl";
            public const string 处理中 = "处理中";

			static public string ToPropertyName(string columnName)
			{
				if(ht == null)
				{
					ht = new Hashtable();
					
					ht[ID] = _Content.PropertyNames.ID;
					ht[已采] = _Content.PropertyNames.已采;
					ht[已发] = _Content.PropertyNames.已发;
					ht[标题] = _Content.PropertyNames.标题;
					ht[公司介绍] = _Content.PropertyNames.公司介绍;
					ht[公司介绍_pic] = _Content.PropertyNames.公司介绍_pic;
					ht[Logo] = _Content.PropertyNames.Logo;
					ht[Logo2] = _Content.PropertyNames.Logo2;
					ht[公司ID] = _Content.PropertyNames.公司ID;
					ht[邮编] = _Content.PropertyNames.邮编;
					ht[注册资本] = _Content.PropertyNames.注册资本;
					ht[成立时间] = _Content.PropertyNames.成立时间;
					ht[注册地址] = _Content.PropertyNames.注册地址;
					ht[主营产品或服务] = _Content.PropertyNames.主营产品或服务;
					ht[公司网址] = _Content.PropertyNames.公司网址;
					ht[法人代表] = _Content.PropertyNames.法人代表;
					ht[手机] = _Content.PropertyNames.手机;
					ht[电话] = _Content.PropertyNames.电话;
					ht[联系人] = _Content.PropertyNames.联系人;
					ht[地址] = _Content.PropertyNames.地址;
					ht[传真] = _Content.PropertyNames.传真;
					ht[性别] = _Content.PropertyNames.性别;
					ht[职称] = _Content.PropertyNames.职称;
					ht[缩略图] = _Content.PropertyNames.缩略图;
					ht[PageUrl] = _Content.PropertyNames.PageUrl;
					ht[处理中] = _Content.PropertyNames.处理中;

				}
				return (string)ht[columnName];
			}

			static private Hashtable ht = null;			 
		}
		#endregion
		
		#region PropertyNames
		public class PropertyNames
		{  
            public const string ID = "ID";
            public const string 已采 = "已采";
            public const string 已发 = "已发";
            public const string 标题 = "标题";
            public const string 公司介绍 = "公司介绍";
            public const string 公司介绍_pic = "公司介绍_pic";
            public const string Logo = "Logo";
            public const string Logo2 = "Logo2";
            public const string 公司ID = "公司ID";
            public const string 邮编 = "邮编";
            public const string 注册资本 = "注册资本";
            public const string 成立时间 = "成立时间";
            public const string 注册地址 = "注册地址";
            public const string 主营产品或服务 = "主营产品或服务";
            public const string 公司网址 = "公司网址";
            public const string 法人代表 = "法人代表";
            public const string 手机 = "手机";
            public const string 电话 = "电话";
            public const string 联系人 = "联系人";
            public const string 地址 = "地址";
            public const string 传真 = "传真";
            public const string 性别 = "性别";
            public const string 职称 = "职称";
            public const string 缩略图 = "缩略图";
            public const string PageUrl = "PageUrl";
            public const string 处理中 = "处理中";

			static public string ToColumnName(string propertyName)
			{
				if(ht == null)
				{
					ht = new Hashtable();
					
					ht[ID] = _Content.ColumnNames.ID;
					ht[已采] = _Content.ColumnNames.已采;
					ht[已发] = _Content.ColumnNames.已发;
					ht[标题] = _Content.ColumnNames.标题;
					ht[公司介绍] = _Content.ColumnNames.公司介绍;
					ht[公司介绍_pic] = _Content.ColumnNames.公司介绍_pic;
					ht[Logo] = _Content.ColumnNames.Logo;
					ht[Logo2] = _Content.ColumnNames.Logo2;
					ht[公司ID] = _Content.ColumnNames.公司ID;
					ht[邮编] = _Content.ColumnNames.邮编;
					ht[注册资本] = _Content.ColumnNames.注册资本;
					ht[成立时间] = _Content.ColumnNames.成立时间;
					ht[注册地址] = _Content.ColumnNames.注册地址;
					ht[主营产品或服务] = _Content.ColumnNames.主营产品或服务;
					ht[公司网址] = _Content.ColumnNames.公司网址;
					ht[法人代表] = _Content.ColumnNames.法人代表;
					ht[手机] = _Content.ColumnNames.手机;
					ht[电话] = _Content.ColumnNames.电话;
					ht[联系人] = _Content.ColumnNames.联系人;
					ht[地址] = _Content.ColumnNames.地址;
					ht[传真] = _Content.ColumnNames.传真;
					ht[性别] = _Content.ColumnNames.性别;
					ht[职称] = _Content.ColumnNames.职称;
					ht[缩略图] = _Content.ColumnNames.缩略图;
					ht[PageUrl] = _Content.ColumnNames.PageUrl;
					ht[处理中] = _Content.ColumnNames.处理中;

				}
				return (string)ht[propertyName];
			}

			static private Hashtable ht = null;			 
		}			 
		#endregion	

		#region StringPropertyNames
		public class StringPropertyNames
		{  
            public const string ID = "s_ID";
            public const string 已采 = "s_已采";
            public const string 已发 = "s_已发";
            public const string 标题 = "s_标题";
            public const string 公司介绍 = "s_公司介绍";
            public const string 公司介绍_pic = "s_公司介绍_pic";
            public const string Logo = "s_Logo";
            public const string Logo2 = "s_Logo2";
            public const string 公司ID = "s_公司ID";
            public const string 邮编 = "s_邮编";
            public const string 注册资本 = "s_注册资本";
            public const string 成立时间 = "s_成立时间";
            public const string 注册地址 = "s_注册地址";
            public const string 主营产品或服务 = "s_主营产品或服务";
            public const string 公司网址 = "s_公司网址";
            public const string 法人代表 = "s_法人代表";
            public const string 手机 = "s_手机";
            public const string 电话 = "s_电话";
            public const string 联系人 = "s_联系人";
            public const string 地址 = "s_地址";
            public const string 传真 = "s_传真";
            public const string 性别 = "s_性别";
            public const string 职称 = "s_职称";
            public const string 缩略图 = "s_缩略图";
            public const string PageUrl = "s_PageUrl";
            public const string 处理中 = "s_处理中";

		}
		#endregion		
		
		#region Properties
	
		public virtual int ID
	    {
			get
	        {
				return base.Getint(ColumnNames.ID);
			}
			set
	        {
				base.Setint(ColumnNames.ID, value);
			}
		}

		public virtual bool 已采
	    {
			get
	        {
				return base.Getbool(ColumnNames.已采);
			}
			set
	        {
				base.Setbool(ColumnNames.已采, value);
			}
		}

		public virtual bool 已发
	    {
			get
	        {
				return base.Getbool(ColumnNames.已发);
			}
			set
	        {
				base.Setbool(ColumnNames.已发, value);
			}
		}

		public virtual string 标题
	    {
			get
	        {
				return base.Getstring(ColumnNames.标题);
			}
			set
	        {
				base.Setstring(ColumnNames.标题, value);
			}
		}

		public virtual string 公司介绍
	    {
			get
	        {
				return base.Getstring(ColumnNames.公司介绍);
			}
			set
	        {
				base.Setstring(ColumnNames.公司介绍, value);
			}
		}

		public virtual string 公司介绍_pic
	    {
			get
	        {
				return base.Getstring(ColumnNames.公司介绍_pic);
			}
			set
	        {
				base.Setstring(ColumnNames.公司介绍_pic, value);
			}
		}

		public virtual string Logo
	    {
			get
	        {
				return base.Getstring(ColumnNames.Logo);
			}
			set
	        {
				base.Setstring(ColumnNames.Logo, value);
			}
		}

		public virtual string Logo2
	    {
			get
	        {
				return base.Getstring(ColumnNames.Logo2);
			}
			set
	        {
				base.Setstring(ColumnNames.Logo2, value);
			}
		}

		public virtual string 公司ID
	    {
			get
	        {
				return base.Getstring(ColumnNames.公司ID);
			}
			set
	        {
				base.Setstring(ColumnNames.公司ID, value);
			}
		}

		public virtual string 邮编
	    {
			get
	        {
				return base.Getstring(ColumnNames.邮编);
			}
			set
	        {
				base.Setstring(ColumnNames.邮编, value);
			}
		}

		public virtual string 注册资本
	    {
			get
	        {
				return base.Getstring(ColumnNames.注册资本);
			}
			set
	        {
				base.Setstring(ColumnNames.注册资本, value);
			}
		}

		public virtual string 成立时间
	    {
			get
	        {
				return base.Getstring(ColumnNames.成立时间);
			}
			set
	        {
				base.Setstring(ColumnNames.成立时间, value);
			}
		}

		public virtual string 注册地址
	    {
			get
	        {
				return base.Getstring(ColumnNames.注册地址);
			}
			set
	        {
				base.Setstring(ColumnNames.注册地址, value);
			}
		}

		public virtual string 主营产品或服务
	    {
			get
	        {
				return base.Getstring(ColumnNames.主营产品或服务);
			}
			set
	        {
				base.Setstring(ColumnNames.主营产品或服务, value);
			}
		}

		public virtual string 公司网址
	    {
			get
	        {
				return base.Getstring(ColumnNames.公司网址);
			}
			set
	        {
				base.Setstring(ColumnNames.公司网址, value);
			}
		}

		public virtual string 法人代表
	    {
			get
	        {
				return base.Getstring(ColumnNames.法人代表);
			}
			set
	        {
				base.Setstring(ColumnNames.法人代表, value);
			}
		}

		public virtual string 手机
	    {
			get
	        {
				return base.Getstring(ColumnNames.手机);
			}
			set
	        {
				base.Setstring(ColumnNames.手机, value);
			}
		}

		public virtual string 电话
	    {
			get
	        {
				return base.Getstring(ColumnNames.电话);
			}
			set
	        {
				base.Setstring(ColumnNames.电话, value);
			}
		}

		public virtual string 联系人
	    {
			get
	        {
				return base.Getstring(ColumnNames.联系人);
			}
			set
	        {
				base.Setstring(ColumnNames.联系人, value);
			}
		}

		public virtual string 地址
	    {
			get
	        {
				return base.Getstring(ColumnNames.地址);
			}
			set
	        {
				base.Setstring(ColumnNames.地址, value);
			}
		}

		public virtual string 传真
	    {
			get
	        {
				return base.Getstring(ColumnNames.传真);
			}
			set
	        {
				base.Setstring(ColumnNames.传真, value);
			}
		}

		public virtual string 性别
	    {
			get
	        {
				return base.Getstring(ColumnNames.性别);
			}
			set
	        {
				base.Setstring(ColumnNames.性别, value);
			}
		}

		public virtual string 职称
	    {
			get
	        {
				return base.Getstring(ColumnNames.职称);
			}
			set
	        {
				base.Setstring(ColumnNames.职称, value);
			}
		}

		public virtual string 缩略图
	    {
			get
	        {
				return base.Getstring(ColumnNames.缩略图);
			}
			set
	        {
				base.Setstring(ColumnNames.缩略图, value);
			}
		}

		public virtual string PageUrl
	    {
			get
	        {
				return base.Getstring(ColumnNames.PageUrl);
			}
			set
	        {
				base.Setstring(ColumnNames.PageUrl, value);
			}
		}

		public virtual bool 处理中
	    {
			get
	        {
				return base.Getbool(ColumnNames.处理中);
			}
			set
	        {
				base.Setbool(ColumnNames.处理中, value);
			}
		}


		#endregion
		
		#region String Properties
	
		public virtual string s_ID
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.ID) ? string.Empty : base.GetintAsString(ColumnNames.ID);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.ID);
				else
					this.ID = base.SetintAsString(ColumnNames.ID, value);
			}
		}

		public virtual string s_已采
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.已采) ? string.Empty : base.GetboolAsString(ColumnNames.已采);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.已采);
				else
					this.已采 = base.SetboolAsString(ColumnNames.已采, value);
			}
		}

		public virtual string s_已发
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.已发) ? string.Empty : base.GetboolAsString(ColumnNames.已发);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.已发);
				else
					this.已发 = base.SetboolAsString(ColumnNames.已发, value);
			}
		}

		public virtual string s_标题
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.标题) ? string.Empty : base.GetstringAsString(ColumnNames.标题);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.标题);
				else
					this.标题 = base.SetstringAsString(ColumnNames.标题, value);
			}
		}

		public virtual string s_公司介绍
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.公司介绍) ? string.Empty : base.GetstringAsString(ColumnNames.公司介绍);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.公司介绍);
				else
					this.公司介绍 = base.SetstringAsString(ColumnNames.公司介绍, value);
			}
		}

		public virtual string s_公司介绍_pic
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.公司介绍_pic) ? string.Empty : base.GetstringAsString(ColumnNames.公司介绍_pic);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.公司介绍_pic);
				else
					this.公司介绍_pic = base.SetstringAsString(ColumnNames.公司介绍_pic, value);
			}
		}

		public virtual string s_Logo
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.Logo) ? string.Empty : base.GetstringAsString(ColumnNames.Logo);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.Logo);
				else
					this.Logo = base.SetstringAsString(ColumnNames.Logo, value);
			}
		}

		public virtual string s_Logo2
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.Logo2) ? string.Empty : base.GetstringAsString(ColumnNames.Logo2);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.Logo2);
				else
					this.Logo2 = base.SetstringAsString(ColumnNames.Logo2, value);
			}
		}

		public virtual string s_公司ID
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.公司ID) ? string.Empty : base.GetstringAsString(ColumnNames.公司ID);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.公司ID);
				else
					this.公司ID = base.SetstringAsString(ColumnNames.公司ID, value);
			}
		}

		public virtual string s_邮编
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.邮编) ? string.Empty : base.GetstringAsString(ColumnNames.邮编);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.邮编);
				else
					this.邮编 = base.SetstringAsString(ColumnNames.邮编, value);
			}
		}

		public virtual string s_注册资本
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.注册资本) ? string.Empty : base.GetstringAsString(ColumnNames.注册资本);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.注册资本);
				else
					this.注册资本 = base.SetstringAsString(ColumnNames.注册资本, value);
			}
		}

		public virtual string s_成立时间
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.成立时间) ? string.Empty : base.GetstringAsString(ColumnNames.成立时间);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.成立时间);
				else
					this.成立时间 = base.SetstringAsString(ColumnNames.成立时间, value);
			}
		}

		public virtual string s_注册地址
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.注册地址) ? string.Empty : base.GetstringAsString(ColumnNames.注册地址);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.注册地址);
				else
					this.注册地址 = base.SetstringAsString(ColumnNames.注册地址, value);
			}
		}

		public virtual string s_主营产品或服务
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.主营产品或服务) ? string.Empty : base.GetstringAsString(ColumnNames.主营产品或服务);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.主营产品或服务);
				else
					this.主营产品或服务 = base.SetstringAsString(ColumnNames.主营产品或服务, value);
			}
		}

		public virtual string s_公司网址
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.公司网址) ? string.Empty : base.GetstringAsString(ColumnNames.公司网址);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.公司网址);
				else
					this.公司网址 = base.SetstringAsString(ColumnNames.公司网址, value);
			}
		}

		public virtual string s_法人代表
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.法人代表) ? string.Empty : base.GetstringAsString(ColumnNames.法人代表);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.法人代表);
				else
					this.法人代表 = base.SetstringAsString(ColumnNames.法人代表, value);
			}
		}

		public virtual string s_手机
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.手机) ? string.Empty : base.GetstringAsString(ColumnNames.手机);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.手机);
				else
					this.手机 = base.SetstringAsString(ColumnNames.手机, value);
			}
		}

		public virtual string s_电话
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.电话) ? string.Empty : base.GetstringAsString(ColumnNames.电话);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.电话);
				else
					this.电话 = base.SetstringAsString(ColumnNames.电话, value);
			}
		}

		public virtual string s_联系人
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.联系人) ? string.Empty : base.GetstringAsString(ColumnNames.联系人);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.联系人);
				else
					this.联系人 = base.SetstringAsString(ColumnNames.联系人, value);
			}
		}

		public virtual string s_地址
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.地址) ? string.Empty : base.GetstringAsString(ColumnNames.地址);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.地址);
				else
					this.地址 = base.SetstringAsString(ColumnNames.地址, value);
			}
		}

		public virtual string s_传真
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.传真) ? string.Empty : base.GetstringAsString(ColumnNames.传真);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.传真);
				else
					this.传真 = base.SetstringAsString(ColumnNames.传真, value);
			}
		}

		public virtual string s_性别
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.性别) ? string.Empty : base.GetstringAsString(ColumnNames.性别);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.性别);
				else
					this.性别 = base.SetstringAsString(ColumnNames.性别, value);
			}
		}

		public virtual string s_职称
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.职称) ? string.Empty : base.GetstringAsString(ColumnNames.职称);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.职称);
				else
					this.职称 = base.SetstringAsString(ColumnNames.职称, value);
			}
		}

		public virtual string s_缩略图
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.缩略图) ? string.Empty : base.GetstringAsString(ColumnNames.缩略图);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.缩略图);
				else
					this.缩略图 = base.SetstringAsString(ColumnNames.缩略图, value);
			}
		}

		public virtual string s_PageUrl
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.PageUrl) ? string.Empty : base.GetstringAsString(ColumnNames.PageUrl);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.PageUrl);
				else
					this.PageUrl = base.SetstringAsString(ColumnNames.PageUrl, value);
			}
		}

		public virtual string s_处理中
	    {
			get
	        {
				return this.IsColumnNull(ColumnNames.处理中) ? string.Empty : base.GetboolAsString(ColumnNames.处理中);
			}
			set
	        {
				if(string.Empty == value)
					this.SetColumnNull(ColumnNames.处理中);
				else
					this.处理中 = base.SetboolAsString(ColumnNames.处理中, value);
			}
		}


		#endregion		
	
		#region Where Clause
		public class WhereClause
		{
			public WhereClause(BusinessEntity entity)
			{
				this._entity = entity;
			}
			
			public TearOffWhereParameter TearOff
			{
				get
				{
					if(_tearOff == null)
					{
						_tearOff = new TearOffWhereParameter(this);
					}

					return _tearOff;
				}
			}

			#region WhereParameter TearOff's
			public class TearOffWhereParameter
			{
				public TearOffWhereParameter(WhereClause clause)
				{
					this._clause = clause;
				}
				
				
				public WhereParameter ID
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.ID, Parameters.ID);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 已采
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.已采, Parameters.已采);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 已发
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.已发, Parameters.已发);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 标题
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.标题, Parameters.标题);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 公司介绍
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.公司介绍, Parameters.公司介绍);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 公司介绍_pic
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.公司介绍_pic, Parameters.公司介绍_pic);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter Logo
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.Logo, Parameters.Logo);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter Logo2
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.Logo2, Parameters.Logo2);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 公司ID
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.公司ID, Parameters.公司ID);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 邮编
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.邮编, Parameters.邮编);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 注册资本
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.注册资本, Parameters.注册资本);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 成立时间
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.成立时间, Parameters.成立时间);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 注册地址
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.注册地址, Parameters.注册地址);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 主营产品或服务
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.主营产品或服务, Parameters.主营产品或服务);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 公司网址
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.公司网址, Parameters.公司网址);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 法人代表
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.法人代表, Parameters.法人代表);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 手机
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.手机, Parameters.手机);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 电话
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.电话, Parameters.电话);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 联系人
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.联系人, Parameters.联系人);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 地址
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.地址, Parameters.地址);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 传真
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.传真, Parameters.传真);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 性别
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.性别, Parameters.性别);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 职称
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.职称, Parameters.职称);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 缩略图
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.缩略图, Parameters.缩略图);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter PageUrl
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.PageUrl, Parameters.PageUrl);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}

				public WhereParameter 处理中
				{
					get
					{
							WhereParameter where = new WhereParameter(ColumnNames.处理中, Parameters.处理中);
							this._clause._entity.Query.AddWhereParameter(where);
							return where;
					}
				}


				private WhereClause _clause;
			}
			#endregion
		
			public WhereParameter ID
		    {
				get
		        {
					if(_ID_W == null)
	        	    {
						_ID_W = TearOff.ID;
					}
					return _ID_W;
				}
			}

			public WhereParameter 已采
		    {
				get
		        {
					if(_已采_W == null)
	        	    {
						_已采_W = TearOff.已采;
					}
					return _已采_W;
				}
			}

			public WhereParameter 已发
		    {
				get
		        {
					if(_已发_W == null)
	        	    {
						_已发_W = TearOff.已发;
					}
					return _已发_W;
				}
			}

			public WhereParameter 标题
		    {
				get
		        {
					if(_标题_W == null)
	        	    {
						_标题_W = TearOff.标题;
					}
					return _标题_W;
				}
			}

			public WhereParameter 公司介绍
		    {
				get
		        {
					if(_公司介绍_W == null)
	        	    {
						_公司介绍_W = TearOff.公司介绍;
					}
					return _公司介绍_W;
				}
			}

			public WhereParameter 公司介绍_pic
		    {
				get
		        {
					if(_公司介绍_pic_W == null)
	        	    {
						_公司介绍_pic_W = TearOff.公司介绍_pic;
					}
					return _公司介绍_pic_W;
				}
			}

			public WhereParameter Logo
		    {
				get
		        {
					if(_Logo_W == null)
	        	    {
						_Logo_W = TearOff.Logo;
					}
					return _Logo_W;
				}
			}

			public WhereParameter Logo2
		    {
				get
		        {
					if(_Logo2_W == null)
	        	    {
						_Logo2_W = TearOff.Logo2;
					}
					return _Logo2_W;
				}
			}

			public WhereParameter 公司ID
		    {
				get
		        {
					if(_公司ID_W == null)
	        	    {
						_公司ID_W = TearOff.公司ID;
					}
					return _公司ID_W;
				}
			}

			public WhereParameter 邮编
		    {
				get
		        {
					if(_邮编_W == null)
	        	    {
						_邮编_W = TearOff.邮编;
					}
					return _邮编_W;
				}
			}

			public WhereParameter 注册资本
		    {
				get
		        {
					if(_注册资本_W == null)
	        	    {
						_注册资本_W = TearOff.注册资本;
					}
					return _注册资本_W;
				}
			}

			public WhereParameter 成立时间
		    {
				get
		        {
					if(_成立时间_W == null)
	        	    {
						_成立时间_W = TearOff.成立时间;
					}
					return _成立时间_W;
				}
			}

			public WhereParameter 注册地址
		    {
				get
		        {
					if(_注册地址_W == null)
	        	    {
						_注册地址_W = TearOff.注册地址;
					}
					return _注册地址_W;
				}
			}

			public WhereParameter 主营产品或服务
		    {
				get
		        {
					if(_主营产品或服务_W == null)
	        	    {
						_主营产品或服务_W = TearOff.主营产品或服务;
					}
					return _主营产品或服务_W;
				}
			}

			public WhereParameter 公司网址
		    {
				get
		        {
					if(_公司网址_W == null)
	        	    {
						_公司网址_W = TearOff.公司网址;
					}
					return _公司网址_W;
				}
			}

			public WhereParameter 法人代表
		    {
				get
		        {
					if(_法人代表_W == null)
	        	    {
						_法人代表_W = TearOff.法人代表;
					}
					return _法人代表_W;
				}
			}

			public WhereParameter 手机
		    {
				get
		        {
					if(_手机_W == null)
	        	    {
						_手机_W = TearOff.手机;
					}
					return _手机_W;
				}
			}

			public WhereParameter 电话
		    {
				get
		        {
					if(_电话_W == null)
	        	    {
						_电话_W = TearOff.电话;
					}
					return _电话_W;
				}
			}

			public WhereParameter 联系人
		    {
				get
		        {
					if(_联系人_W == null)
	        	    {
						_联系人_W = TearOff.联系人;
					}
					return _联系人_W;
				}
			}

			public WhereParameter 地址
		    {
				get
		        {
					if(_地址_W == null)
	        	    {
						_地址_W = TearOff.地址;
					}
					return _地址_W;
				}
			}

			public WhereParameter 传真
		    {
				get
		        {
					if(_传真_W == null)
	        	    {
						_传真_W = TearOff.传真;
					}
					return _传真_W;
				}
			}

			public WhereParameter 性别
		    {
				get
		        {
					if(_性别_W == null)
	        	    {
						_性别_W = TearOff.性别;
					}
					return _性别_W;
				}
			}

			public WhereParameter 职称
		    {
				get
		        {
					if(_职称_W == null)
	        	    {
						_职称_W = TearOff.职称;
					}
					return _职称_W;
				}
			}

			public WhereParameter 缩略图
		    {
				get
		        {
					if(_缩略图_W == null)
	        	    {
						_缩略图_W = TearOff.缩略图;
					}
					return _缩略图_W;
				}
			}

			public WhereParameter PageUrl
		    {
				get
		        {
					if(_PageUrl_W == null)
	        	    {
						_PageUrl_W = TearOff.PageUrl;
					}
					return _PageUrl_W;
				}
			}

			public WhereParameter 处理中
		    {
				get
		        {
					if(_处理中_W == null)
	        	    {
						_处理中_W = TearOff.处理中;
					}
					return _处理中_W;
				}
			}

			private WhereParameter _ID_W = null;
			private WhereParameter _已采_W = null;
			private WhereParameter _已发_W = null;
			private WhereParameter _标题_W = null;
			private WhereParameter _公司介绍_W = null;
			private WhereParameter _公司介绍_pic_W = null;
			private WhereParameter _Logo_W = null;
			private WhereParameter _Logo2_W = null;
			private WhereParameter _公司ID_W = null;
			private WhereParameter _邮编_W = null;
			private WhereParameter _注册资本_W = null;
			private WhereParameter _成立时间_W = null;
			private WhereParameter _注册地址_W = null;
			private WhereParameter _主营产品或服务_W = null;
			private WhereParameter _公司网址_W = null;
			private WhereParameter _法人代表_W = null;
			private WhereParameter _手机_W = null;
			private WhereParameter _电话_W = null;
			private WhereParameter _联系人_W = null;
			private WhereParameter _地址_W = null;
			private WhereParameter _传真_W = null;
			private WhereParameter _性别_W = null;
			private WhereParameter _职称_W = null;
			private WhereParameter _缩略图_W = null;
			private WhereParameter _PageUrl_W = null;
			private WhereParameter _处理中_W = null;

			public void WhereClauseReset()
			{
				_ID_W = null;
				_已采_W = null;
				_已发_W = null;
				_标题_W = null;
				_公司介绍_W = null;
				_公司介绍_pic_W = null;
				_Logo_W = null;
				_Logo2_W = null;
				_公司ID_W = null;
				_邮编_W = null;
				_注册资本_W = null;
				_成立时间_W = null;
				_注册地址_W = null;
				_主营产品或服务_W = null;
				_公司网址_W = null;
				_法人代表_W = null;
				_手机_W = null;
				_电话_W = null;
				_联系人_W = null;
				_地址_W = null;
				_传真_W = null;
				_性别_W = null;
				_职称_W = null;
				_缩略图_W = null;
				_PageUrl_W = null;
				_处理中_W = null;

				this._entity.Query.FlushWhereParameters();

			}
	
			private BusinessEntity _entity;
			private TearOffWhereParameter _tearOff;
			
		}
	
		public WhereClause Where
		{
			get
			{
				if(_whereClause == null)
				{
					_whereClause = new WhereClause(this);
				}
		
				return _whereClause;
			}
		}
		
		private WhereClause _whereClause = null;	
		#endregion
	
		#region Aggregate Clause
		public class AggregateClause
		{
			public AggregateClause(BusinessEntity entity)
			{
				this._entity = entity;
			}
			
			public TearOffAggregateParameter TearOff
			{
				get
				{
					if(_tearOff == null)
					{
						_tearOff = new TearOffAggregateParameter(this);
					}

					return _tearOff;
				}
			}

			#region AggregateParameter TearOff's
			public class TearOffAggregateParameter
			{
				public TearOffAggregateParameter(AggregateClause clause)
				{
					this._clause = clause;
				}
				
				
				public AggregateParameter ID
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.ID, Parameters.ID);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 已采
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.已采, Parameters.已采);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 已发
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.已发, Parameters.已发);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 标题
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.标题, Parameters.标题);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 公司介绍
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.公司介绍, Parameters.公司介绍);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 公司介绍_pic
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.公司介绍_pic, Parameters.公司介绍_pic);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter Logo
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.Logo, Parameters.Logo);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter Logo2
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.Logo2, Parameters.Logo2);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 公司ID
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.公司ID, Parameters.公司ID);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 邮编
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.邮编, Parameters.邮编);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 注册资本
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.注册资本, Parameters.注册资本);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 成立时间
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.成立时间, Parameters.成立时间);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 注册地址
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.注册地址, Parameters.注册地址);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 主营产品或服务
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.主营产品或服务, Parameters.主营产品或服务);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 公司网址
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.公司网址, Parameters.公司网址);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 法人代表
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.法人代表, Parameters.法人代表);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 手机
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.手机, Parameters.手机);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 电话
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.电话, Parameters.电话);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 联系人
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.联系人, Parameters.联系人);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 地址
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.地址, Parameters.地址);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 传真
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.传真, Parameters.传真);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 性别
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.性别, Parameters.性别);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 职称
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.职称, Parameters.职称);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 缩略图
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.缩略图, Parameters.缩略图);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter PageUrl
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.PageUrl, Parameters.PageUrl);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}

				public AggregateParameter 处理中
				{
					get
					{
							AggregateParameter aggregate = new AggregateParameter(ColumnNames.处理中, Parameters.处理中);
							this._clause._entity.Query.AddAggregateParameter(aggregate);
							return aggregate;
					}
				}


				private AggregateClause _clause;
			}
			#endregion
		
			public AggregateParameter ID
		    {
				get
		        {
					if(_ID_W == null)
	        	    {
						_ID_W = TearOff.ID;
					}
					return _ID_W;
				}
			}

			public AggregateParameter 已采
		    {
				get
		        {
					if(_已采_W == null)
	        	    {
						_已采_W = TearOff.已采;
					}
					return _已采_W;
				}
			}

			public AggregateParameter 已发
		    {
				get
		        {
					if(_已发_W == null)
	        	    {
						_已发_W = TearOff.已发;
					}
					return _已发_W;
				}
			}

			public AggregateParameter 标题
		    {
				get
		        {
					if(_标题_W == null)
	        	    {
						_标题_W = TearOff.标题;
					}
					return _标题_W;
				}
			}

			public AggregateParameter 公司介绍
		    {
				get
		        {
					if(_公司介绍_W == null)
	        	    {
						_公司介绍_W = TearOff.公司介绍;
					}
					return _公司介绍_W;
				}
			}

			public AggregateParameter 公司介绍_pic
		    {
				get
		        {
					if(_公司介绍_pic_W == null)
	        	    {
						_公司介绍_pic_W = TearOff.公司介绍_pic;
					}
					return _公司介绍_pic_W;
				}
			}

			public AggregateParameter Logo
		    {
				get
		        {
					if(_Logo_W == null)
	        	    {
						_Logo_W = TearOff.Logo;
					}
					return _Logo_W;
				}
			}

			public AggregateParameter Logo2
		    {
				get
		        {
					if(_Logo2_W == null)
	        	    {
						_Logo2_W = TearOff.Logo2;
					}
					return _Logo2_W;
				}
			}

			public AggregateParameter 公司ID
		    {
				get
		        {
					if(_公司ID_W == null)
	        	    {
						_公司ID_W = TearOff.公司ID;
					}
					return _公司ID_W;
				}
			}

			public AggregateParameter 邮编
		    {
				get
		        {
					if(_邮编_W == null)
	        	    {
						_邮编_W = TearOff.邮编;
					}
					return _邮编_W;
				}
			}

			public AggregateParameter 注册资本
		    {
				get
		        {
					if(_注册资本_W == null)
	        	    {
						_注册资本_W = TearOff.注册资本;
					}
					return _注册资本_W;
				}
			}

			public AggregateParameter 成立时间
		    {
				get
		        {
					if(_成立时间_W == null)
	        	    {
						_成立时间_W = TearOff.成立时间;
					}
					return _成立时间_W;
				}
			}

			public AggregateParameter 注册地址
		    {
				get
		        {
					if(_注册地址_W == null)
	        	    {
						_注册地址_W = TearOff.注册地址;
					}
					return _注册地址_W;
				}
			}

			public AggregateParameter 主营产品或服务
		    {
				get
		        {
					if(_主营产品或服务_W == null)
	        	    {
						_主营产品或服务_W = TearOff.主营产品或服务;
					}
					return _主营产品或服务_W;
				}
			}

			public AggregateParameter 公司网址
		    {
				get
		        {
					if(_公司网址_W == null)
	        	    {
						_公司网址_W = TearOff.公司网址;
					}
					return _公司网址_W;
				}
			}

			public AggregateParameter 法人代表
		    {
				get
		        {
					if(_法人代表_W == null)
	        	    {
						_法人代表_W = TearOff.法人代表;
					}
					return _法人代表_W;
				}
			}

			public AggregateParameter 手机
		    {
				get
		        {
					if(_手机_W == null)
	        	    {
						_手机_W = TearOff.手机;
					}
					return _手机_W;
				}
			}

			public AggregateParameter 电话
		    {
				get
		        {
					if(_电话_W == null)
	        	    {
						_电话_W = TearOff.电话;
					}
					return _电话_W;
				}
			}

			public AggregateParameter 联系人
		    {
				get
		        {
					if(_联系人_W == null)
	        	    {
						_联系人_W = TearOff.联系人;
					}
					return _联系人_W;
				}
			}

			public AggregateParameter 地址
		    {
				get
		        {
					if(_地址_W == null)
	        	    {
						_地址_W = TearOff.地址;
					}
					return _地址_W;
				}
			}

			public AggregateParameter 传真
		    {
				get
		        {
					if(_传真_W == null)
	        	    {
						_传真_W = TearOff.传真;
					}
					return _传真_W;
				}
			}

			public AggregateParameter 性别
		    {
				get
		        {
					if(_性别_W == null)
	        	    {
						_性别_W = TearOff.性别;
					}
					return _性别_W;
				}
			}

			public AggregateParameter 职称
		    {
				get
		        {
					if(_职称_W == null)
	        	    {
						_职称_W = TearOff.职称;
					}
					return _职称_W;
				}
			}

			public AggregateParameter 缩略图
		    {
				get
		        {
					if(_缩略图_W == null)
	        	    {
						_缩略图_W = TearOff.缩略图;
					}
					return _缩略图_W;
				}
			}

			public AggregateParameter PageUrl
		    {
				get
		        {
					if(_PageUrl_W == null)
	        	    {
						_PageUrl_W = TearOff.PageUrl;
					}
					return _PageUrl_W;
				}
			}

			public AggregateParameter 处理中
		    {
				get
		        {
					if(_处理中_W == null)
	        	    {
						_处理中_W = TearOff.处理中;
					}
					return _处理中_W;
				}
			}

			private AggregateParameter _ID_W = null;
			private AggregateParameter _已采_W = null;
			private AggregateParameter _已发_W = null;
			private AggregateParameter _标题_W = null;
			private AggregateParameter _公司介绍_W = null;
			private AggregateParameter _公司介绍_pic_W = null;
			private AggregateParameter _Logo_W = null;
			private AggregateParameter _Logo2_W = null;
			private AggregateParameter _公司ID_W = null;
			private AggregateParameter _邮编_W = null;
			private AggregateParameter _注册资本_W = null;
			private AggregateParameter _成立时间_W = null;
			private AggregateParameter _注册地址_W = null;
			private AggregateParameter _主营产品或服务_W = null;
			private AggregateParameter _公司网址_W = null;
			private AggregateParameter _法人代表_W = null;
			private AggregateParameter _手机_W = null;
			private AggregateParameter _电话_W = null;
			private AggregateParameter _联系人_W = null;
			private AggregateParameter _地址_W = null;
			private AggregateParameter _传真_W = null;
			private AggregateParameter _性别_W = null;
			private AggregateParameter _职称_W = null;
			private AggregateParameter _缩略图_W = null;
			private AggregateParameter _PageUrl_W = null;
			private AggregateParameter _处理中_W = null;

			public void AggregateClauseReset()
			{
				_ID_W = null;
				_已采_W = null;
				_已发_W = null;
				_标题_W = null;
				_公司介绍_W = null;
				_公司介绍_pic_W = null;
				_Logo_W = null;
				_Logo2_W = null;
				_公司ID_W = null;
				_邮编_W = null;
				_注册资本_W = null;
				_成立时间_W = null;
				_注册地址_W = null;
				_主营产品或服务_W = null;
				_公司网址_W = null;
				_法人代表_W = null;
				_手机_W = null;
				_电话_W = null;
				_联系人_W = null;
				_地址_W = null;
				_传真_W = null;
				_性别_W = null;
				_职称_W = null;
				_缩略图_W = null;
				_PageUrl_W = null;
				_处理中_W = null;

				this._entity.Query.FlushAggregateParameters();

			}
	
			private BusinessEntity _entity;
			private TearOffAggregateParameter _tearOff;
			
		}
	
		public AggregateClause Aggregate
		{
			get
			{
				if(_aggregateClause == null)
				{
					_aggregateClause = new AggregateClause(this);
				}
		
				return _aggregateClause;
			}
		}
		
		private AggregateClause _aggregateClause = null;	
		#endregion
	
		protected override IDbCommand GetInsertCommand() 
		{
		
			OleDbCommand cmd = new OleDbCommand();
			cmd.CommandType = CommandType.StoredProcedure;
			cmd.CommandText = "[" + this.SchemaStoredProcedure + "proc_ContentInsert]";
	
			CreateParameters(cmd);
			    
			return cmd;
		}
	
		protected override IDbCommand GetUpdateCommand()
		{
		
			OleDbCommand cmd = new OleDbCommand();
			cmd.CommandType = CommandType.StoredProcedure;
			cmd.CommandText = "[" + this.SchemaStoredProcedure + "proc_ContentUpdate]";
	
			CreateParameters(cmd);
			      
			return cmd;
		}
	
		protected override IDbCommand GetDeleteCommand()
		{
		
			OleDbCommand cmd = new OleDbCommand();
			cmd.CommandType = CommandType.StoredProcedure;
			cmd.CommandText = "[" + this.SchemaStoredProcedure + "proc_ContentDelete]";
	
			OleDbParameter p;
			p = cmd.Parameters.Add(Parameters.ID);
			p.SourceColumn = ColumnNames.ID;
			p.SourceVersion = DataRowVersion.Current;

  
			return cmd;
		}
		
		private IDbCommand CreateParameters(OleDbCommand cmd)
		{
			OleDbParameter p;
		
			p = cmd.Parameters.Add(Parameters.ID);
			p.SourceColumn = ColumnNames.ID;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.已采);
			p.SourceColumn = ColumnNames.已采;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.已发);
			p.SourceColumn = ColumnNames.已发;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.标题);
			p.SourceColumn = ColumnNames.标题;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.公司介绍);
			p.SourceColumn = ColumnNames.公司介绍;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.公司介绍_pic);
			p.SourceColumn = ColumnNames.公司介绍_pic;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.Logo);
			p.SourceColumn = ColumnNames.Logo;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.Logo2);
			p.SourceColumn = ColumnNames.Logo2;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.公司ID);
			p.SourceColumn = ColumnNames.公司ID;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.邮编);
			p.SourceColumn = ColumnNames.邮编;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.注册资本);
			p.SourceColumn = ColumnNames.注册资本;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.成立时间);
			p.SourceColumn = ColumnNames.成立时间;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.注册地址);
			p.SourceColumn = ColumnNames.注册地址;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.主营产品或服务);
			p.SourceColumn = ColumnNames.主营产品或服务;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.公司网址);
			p.SourceColumn = ColumnNames.公司网址;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.法人代表);
			p.SourceColumn = ColumnNames.法人代表;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.手机);
			p.SourceColumn = ColumnNames.手机;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.电话);
			p.SourceColumn = ColumnNames.电话;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.联系人);
			p.SourceColumn = ColumnNames.联系人;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.地址);
			p.SourceColumn = ColumnNames.地址;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.传真);
			p.SourceColumn = ColumnNames.传真;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.性别);
			p.SourceColumn = ColumnNames.性别;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.职称);
			p.SourceColumn = ColumnNames.职称;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.缩略图);
			p.SourceColumn = ColumnNames.缩略图;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.PageUrl);
			p.SourceColumn = ColumnNames.PageUrl;
			p.SourceVersion = DataRowVersion.Current;

			p = cmd.Parameters.Add(Parameters.处理中);
			p.SourceColumn = ColumnNames.处理中;
			p.SourceVersion = DataRowVersion.Current;


			return cmd;
		}
	}
}
